package com.qiaoba.common.base.util;

import cn.hutool.core.util.StrUtil;

import java.util.Objects;

/**
 * 数组工具类
 *
 * @author ailanyin
 * @date 2023-10-4 11:24:26
 */
public class ArrayUtil extends cn.hutool.core.util.ArrayUtil {

    public static boolean containsValueIgnoreCase(CharSequence[] array, CharSequence value) {
        if (Objects.nonNull(array)) {
            for (CharSequence charSequence : array) {
                if (StrUtil.containsIgnoreCase(value, charSequence)) {
                    return true;
                }
            }
        }
        return false;
    }
}
